﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Services.SheepMale.Infrastructure.Migrations
{
    public partial class qwer12112 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "AccountingUnit",
                columns: table => new
                {
                    AccId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    AccName = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_AccountingUnit", x => x.AccId);
                });

            migrationBuilder.CreateTable(
                name: "Digest",
                columns: table => new
                {
                    DigId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    DigName = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Digest", x => x.DigId);
                });

            migrationBuilder.CreateTable(
                name: "SheepTypeInfo",
                columns: table => new
                {
                    SheepTypeId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    SheepTypeName = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SheepTypeInfo", x => x.SheepTypeId);
                });

            migrationBuilder.CreateTable(
                name: "Stash",
                columns: table => new
                {
                    StashId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    StashName = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Stash", x => x.StashId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "AccountingUnit");

            migrationBuilder.DropTable(
                name: "Digest");

            migrationBuilder.DropTable(
                name: "SheepTypeInfo");

            migrationBuilder.DropTable(
                name: "Stash");
        }
    }
}
